package com.chargerlink.echarger;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ImportResource;
import org.springframework.scheduling.annotation.EnableScheduling;


/**
 * Hello world!
 */
@ImportResource({"classpath:/application-task.xml", "classpath:/spring-mvc.xml"})
@ComponentScan("com.chargerlink.echarger")
@EnableAutoConfiguration
@EnableScheduling
public class EchargerApp extends SpringBootServletInitializer {
    public static void main(String[] args) {
        SpringApplication.run(EchargerApp.class, args);
    }


    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(EchargerApp.class);
    }

}
